var ec_left1 = echarts.init(document.getElementById('l2'),"dark");
var ec_left1_option = {
  xAxis: {
    max: 'dataMax'
  },
  yAxis: {
    type: 'category',
    data: [],
    inverse: true,
    animationDuration: 300,
    animationDurationUpdate: 300,
    max: 10

  },
  series: [
    {
      showBackground: true,
      realtimeSort: true,
      name: '图书top10',
      type: 'bar',
      itemStyle: {
            barBorderRadius: [0, 20, 20, 0], // 圆角（左上、右上、右下、左下）
                color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
                    offset: 0,
                    color: '#9890e3'
                }, {
                    offset: 1,
                    color: '#b1f4cf'
                }], false), // 渐变
        },
      data: [],
      label: {
        show: true,
        position: 'right',
        valueAnimation: true
      }
    }
  ],
  legend: {
    show: true
  },
  animationDuration: 0,
  animationDurationUpdate: 1000,
  animationEasing: 'linear',
  animationEasingUpdate: 'linear'
};
ec_left1.setOption(ec_left1_option);